package cn.sumpu.app.coolsk.dao;

import java.util.List;
import java.util.Map;

import cn.sumpu.app.coolsk.domain.AddressCode;
import cn.sumpu.app.coolsk.exception.AppBusinessException;



public interface AddressCodeDao {
	
	//插入地名
	public void addAddressCode(AddressCode addressCode) throws AppBusinessException;
	
	//取得全部的省/直辖市的名称
	List<AddressCode> getProvinceList() throws AppBusinessException;
	
	/**
	 * author Bruce Zhang
	 * @param province
	 * @return			根据省/直辖市取得市/区
	 * @throws AppBusinessException
	 */
	List<AddressCode> getCityByProvince(String province) throws AppBusinessException;
	
	/**
	 * author Bruce Zhang
	 * @param city		城市/直辖市的区
	 * @return			根据市/区取得县/街道
	 * @throws AppBusinessException
	 */
	List<AddressCode> getCountyByCity(String city) throws AppBusinessException;
	
	/**
	 * author Bruce Zhang
	 * @param county	县
	 * @return			根据县取得镇/街道
	 * @throws AppBusinessException
	 */
	List<AddressCode> getTownByCounty(String county) throws AppBusinessException;
	
	
	public List<AddressCode> getAddress(Map<String, Object> map) throws AppBusinessException;
	
}
